package com.zhou.org.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
@Data
public class RightSaveDto implements Serializable {

    @NotEmpty
    private List<Integer> orgIds;

    /**
     * 权限定义
     */
    private Integer id;

    @NotBlank
    private String rightKey;

    @NotBlank
    private String rightType;

    @NotBlank
    private String objectKey;

    @NotNull
    @Min(0)
    @Max(1)
    private Integer reject;


}
